package com.gxar.marketdelivery.application.command;

import com.gxar.marketdelivery.shared.utils.StringUtils;

/**
 * @author nice
 * @version 1.0
 * @created 2023/8/3.
 */
public class DeliveryTraceIdGenerator {

    public static String genPlanTraceId(Long planId, Long resSlotId) {
        return StringUtils.join("static_slot:", planId, ":", resSlotId);
    }

    public static String genStaticSlotTraceId(Long resSlotId) {
        return StringUtils.join("static_slot:", resSlotId);
    }

    public static String genDynamicSlotTraceId(Long resSlotId) {
        return StringUtils.join("dynamic_slot:", resSlotId);
    }

}
